﻿using ttbit.WorkingSpace;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace spriteeditor
{
    //此处集中所有的NodeTag，NodeTag 作为TreeView Item的一个标记，同时用于在PropertyGrid中显示
    public interface INodeTag
    {
        public string Type
        {
            get;
        }
    }
    public class Nodetag_Folder:INodeTag
    {
        public string Type => "Folder";
        public string folder;
        public string Folder => folder;
    }
    public class NodeTag_ErrorFile : INodeTag
    {
        public string Type => "Error";
        public string file;
        public string message;
        public string Message => message;
        public string File=>System.IO.Path.GetFileName(file);
        public string Path => System.IO.Path.GetDirectoryName(file);
      
    }

    public class NodeTag_Meta:INodeTag
    {
        public string Type => "Resource";
        public MetaInfo meta;
    }
  
}
